<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<base href="__ROOT__/">
<title>{$projectname}</title>
<link href="./Public/Css/app.css" rel="stylesheet">
</head>

<body>
	<div id="app">
		<nav>
			<!-- 
			<div style="float: left;">
				<strong style="font-size: 18px;">后台管理</strong> <small>{$version}</small>
			</div>
			<div style="margin: 10px 0px 0px 100px; font-size: 16px;">
				<a href="./index.php/Home/Manager/mb_UserManager" class="nav-item">会员管理</a>
				<a href="./index.php/Home/Manager/mb_RechargeCenter"
					class="nav-item">充值中心</a> <a
					href="./index.php/Home/Manager/mb_Agent" class="nav-item">代理商</a> <a
					href="./index.php/Home/Manager/mb_GameManager" class="nav-item">游戏管理</a>
				<a class="nav-item">明牌之尊3</a> <a
					href="./index.php/Home/Manager/mb_AccountsManager" class="nav-item">账目管理</a>
				<a href="./index.php/Home/Manager/mb_SystemManager" class="nav-item">系统管理</a>
				<span style="font-size: 12px; margin-left: 30px;">在线玩家：0人</span> <span
					style="font-size: 12px; cursor: pointer;">刷新</span>
				<div style="float: right; margin-right: 100px;">
					五位码：{$managercode}，{$level} {$name} <a
						href="./index.php/Home/Manager/mb_Logout">退出</a>
				</div>
			</div>
			 -->
			 {$topbar}
		</nav>
		<hr style="margin: 3px 0px 0px;">
		<div style="margin: 20px 150px 0px;">
			<div>
				<a href="{$url}mb_Agent" class="router-link-active">
					<button	class="func func-activate">代理商列表</button>
				</a> 
				<a href="{$url}mb_AgentSetting" class="">
					<button class="func">代理商配置</button>
				</a>
			</div>
			<div style="margin-bottom: 5px;"></div>
			<div>
				<table style="font-size: 12px;">
					<!-- 
					<tr>
						<td><label for="h1" class="noselect"><input id="h1"
								type="checkbox" value="1">白名 </label> <label for="h3"><input
								id="h3" type="checkbox" value="0">黑名 </label></td>
					</tr>
					 -->
				</table>
				<table border="1" width="100%" class="grid">
					<tr class="tbh">
						<th width="60" style="text-align: center;">AID</th>
						<th align="left" width="100">代理商</th>
						<th align="left" width="100">邀请码</th>
						<th align="left" width="80">登录账号</th>
						<th align="left" width="60">允许登录</th>
						<th align="left" width="60">账目显示</th>
						<th align="left" width="60">上分功能</th>
						<th align="left" width="80">剩余上分额度</th>
						<th align="left" width="150">加盟时间</th>
						<th>操作</th>
					</tr>
					{$table}
				</table>
				<button>
					<a href="{$url}mb_Agent">刷新</a>
				</button>
				<button>
					<a href="{$url}mb_AgentAdd">新增</a>
				</button>
				<br> <br>
				<div>
					<table border="0" style="font-size: 12px;">
						<tr>
							<td align="right">日期范围：</td>
							<td><input type="text" size="12" readonly="readonly" value="{$date1}">-<input type="text" size="12" readonly="readonly" value="{$date2}"></td>
							<td>
								<a href="{$url}mb_AgentHandle?name={$name}&handle=2&scope=0">
									<button>今天</button>
								</a>
								<a href="{$url}mb_AgentHandle?name={$name}&handle=2&scope=1">
									<button>本周</button>
								</a>
								<a href="{$url}mb_AgentHandle?name={$name}&handle=2&scope=2">
									<button>本月</button>
								</a>								
								<!-- 
								<button>◀</button>
								<button>今天</button>
								<button>▶</button>&nbsp;&nbsp;&nbsp;
								<button>◀</button>
								<button>本周</button>
								<button>▶</button>&nbsp;&nbsp;&nbsp;
								<button>◀</button>
								<button>本月</button>
								<button>▶</button>
								 -->
							</td>
							<td align="right" width="50">
								<!---->
							</td>
							<td width="30">
								<!---->
							</td>
							<td align="right" width="50">
								<!---->
							</td>
							<td width="30">
								<!---->
							</td>
							<td align="right" width="50">
								<!---->
							</td>
							<td width="30">
								<!---->
							</td>
							<td>&nbsp;&nbsp;&nbsp;<span style="color: rgb(136, 136, 136);"></span></td>
						</tr>
					</table>
					<table border="1" width="100%" class="grid">
						<tr class="tbh">
							<th width="60" style="text-align: center;">NO.</th>
							<th width="50">类型</th>
							<th width="70">简述</th>
							<th width="80">UID</th>
							<th width="120">账号</th>
							<th width="150">冲前积分</th>
							<th width="100">积分</th>
							<th width="150">冲后积分</th>
							<th width="140">充值时间</th>
							<th width="40">渠道</th>
							<th width="80">操作员</th>
						</tr>
						<!-- 
						<tr>
							<td align="center">3</td>
							<td style="font-weight: bold;"><span style="color: blue;">送分</span></td>
							<td>会员充值</td>
							<td>100000</td>
							<td>xhtest1</td>
							<td>6099000</td>
							<td>10000</td>
							<td>6109000</td>
							<td>2019-02-18 13:54:27</td>
							<td>官方</td>
							<td>TWXH</td>
						</tr>
						 -->
						 {$logdata}
						<tr align="center">
							<!-- 
							<td></td>
		
							<th colspan="2" style="text-align: right; color: green;">单页总上分：</th>
							<th style="color: green;">0</th>
							 
							<th colspan="2" style="text-align: right; color: blue;">单页总送分：</th>
							<th style="color: blue;">0</th>
							<th colspan="2" style="text-align: right; color: red;">单页总下分：</th>
							<th style="color: red;">0</th>
							<td></td>
							-->
						</tr>
						<tr align="center">
							<td></td>
							<th colspan="2" style="text-align: right; color: green;">总上分：</th>
							<th style="color: green;">{$totalup}</th>
							<th colspan="2" style="text-align: right; color: blue;">总送分：</th>
							<th style="color: blue;">{$totalsend}</th>
							<th colspan="2" style="text-align: right; color: red;">总下分：</th>
							<th style="color: red;">{$totaldown}</th>
							<td></td>
						</tr>
						<tr align="center">
							<td></td>
							<th colspan="2" style="text-align: right;">总汇总：</th>
							<th>{$total}</th>
							<!-- 
							<th colspan="2" style="text-align: right;">单页汇总：</th>
							<th colspan="3">0</th>
							 -->
							 
							 <!-- 
							 <th colspan="5"></th>
							<td></td>
							<td></td>
							 -->
						</tr>
					</table>
					<!--
					<button>刷新</button>
					<button disabled="disabled">上一页</button>
					<button disabled="disabled">下一页</button>
					<span>第1页</span> <span>总0页</span> <span>共0条</span>
					-->
				</div>
			</div>
		</div>
	</div>
</body>
</html>

